Summary

This component can be used to display the regular Content Studio browse dialog from which the user can select an image or another document. Values from the selection is then stored in hidden input elements.

Component properties
Category AS EPT
Version 1.0
Complies with Xhtml 1.0 / 1.1 rules Yes
Supported server programming languages C# Visual Basic.NET
Output content type inline
The image dialog component after that the user has pressed the Browse button
The image dialog component after that the user has pressed the Browse button

When to use

This component is typically used when there is a need to offer users a possiblility to select a document that will be included in an EPT document.

Programming interface

Parameters

Field name
Field name
Name of the EPT field that will store the selection-values. This name must be unique and only contains characters:[A-Z][0-9]
Button labels
No image label
A text to display when the user picks a document that is not an image.
Browse button label
The text to display in the browse button.
Delete button label
The text to display in the delete button.
Appearance
Button css class name
Name of the CSS class, this parameter can be used if you want to apply custom styling to the button.
Image settings and location
Default image
A default image to display before the user has picked an image.
Default image location
Optional, set the start location for browsing images/files.
Lock image location
Specifies whether or not to lock the location from where the image/file can be selected.
Display thumbnail
Specifies whether to display the image as a thumbnail rather that the actual image. This requires that a thumbnail image has been defined using the image processing functionality for the image's category. This will only have effect within the edit template.
Max height
Define the max display height for the image in pixels. Zero (0) will displays the image with its original height, except when a thumnail image is selected. This will only have effect within the edit template.
Max width
Define the max display width for an image in pixels. Zero (0) will display the image with its original width, except when a thumnail image is selected. This will only have effect within the edit template.
Customization (advanced)
Custom browse function
The name - without arguments or paranthesis - of a client side javascript function to execute instead of the standard browse dialog. This custom function should have one argument. The passed value is an array consisting of the following fields and in the specified order.
  • Integer: a unit identifier
  • Integer: a category identifier
  • Integer - multidimensional: document identifier
  • String - multidimensional: document name
  • String - multidimensional: document url
  • String - multidimensional: content type
The function should also return the same type of array.

Remarks

This component is intended to be used in a intranet only. Image dialog requires Internet explorer version 6.0 or later and the visitors must be authenticated.